<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/18
 * Time: 11:12
 * 添加学生收到的校内通知
 */
//获取参数
$osn_osnid              = $route->bodyParams['osn_osnid'];
$osn_stuid           = $route->bodyParams['osn_stuid'];


//写入数组
$insertArr = [
    'osn_stuid'            => $osn_stuid,
    'osn_osnid'            => $osn_osnid,
    'osn_create_time'     => time()
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_notice",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );